import {createRouter, createWebHistory} from 'vue-router'

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/',
            redirect: '/task',
        },
        {
            path: '/task',
            name: 'task',
            component: () => import('@/views/TaskTablePanel.vue')
        },
        {
            path: '/receive',
            name: 'receive',
            component: () => import('@/views/ReceiveTablePanel.vue')
        },
        {
            path: '/complete',
            name: 'complete',
            component: () => import('@/views/CompletedTablePanel.vue')
        },
        {
            path: '/chat',
            name: '/chat',
            component: () => import('@/views/ChatPanel.vue')
        },
        {
            path: '/create',
            name: 'create',
            component: () => import('@/views/DragFilePanel.vue')
        },
        {
            path: '/:pathMatch(.*)',
            component: () => import('@/views/DragFilePanel.vue')
        }
    ]

})


export default router
